package com.vip.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 田连印
 * @Date 2025/1/7 14:47
 * @Descripition
 */
@Component
@Schema(description = "公共实体类")
@Data
public class CommonEntity implements Serializable, TransPojo {
    @Schema(description = "主键id")
    @TableId(value = "id",type= IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "是否删除")
    @TableLogic
    @TableField(value = "is_deleted", fill = FieldFill.INSERT)
    private String isDeleted;
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
